GOCOVERDIR=./internal/cover/data
export GOCOVERDIR:=./internal/cover/data
export CGO_ENABLED:=1
Debug:
	go build -tags=Debug 
test:
	go test ./...
bench:
	go test -run=ssss -bench=. -trimpath -benchtime=400ms -cpuprofile="default.pgo"
test2:
	go test -tags=notest ./...
race:
	go test -race -bench=. -benchtime=500ms ./...
cover:
	mkdir $(GOCOVERDIR)
	go run -C ./ -cover ./internal/cover/main.go 
	go tool covdata percent -i=$(GOCOVERDIR)
	go tool covdata textfmt -i=$(GOCOVERDIR) -o=$(GOCOVERDIR)/cov.txt
	go tool cover -html=$(GOCOVERDIR)/cov.txt
	rm -R $(GOCOVERDIR)
enable:
	echo ./ast ./lex ./internal/utils ./ir2 ./cast ./errcode ./parser ./internal/parser ./data ./check2 ./internal/errutil ./format ./config ./internal/time
